export const routes1 = [
    {
        path: "/",
        name: 'Layout',
        redirect: '/home',
        component: () => import("../page/system/MainLayout.vue"),
        // 嵌套路由
        children: [
            {
                // 这里不设置值，是把main作为默认页面
                path: "/home",
                name: "Main",
                meta: {title: '首页', show: true},
                component: () => import("@/page/system/home/Main.vue"),
            },
            {
                path: "/user",
                name: "User",
                meta: {title: '用户管理', show: true},
                component: () => import("@/page/system/user/index"),
            },
            {
                path: "/categories",
                name: "Categories",
                meta: {title: '众筹项目管理', show: true},
                component: () => import("@/page/system/categories/index"),
            },
            {
                path: "/information",
                name: "Information",
                meta: {title: '资讯管理', show: true},
                component: () => import("@/page/system/information/index"),
            },
            {
                path: "/notice",
                name: "Notice",
                meta: {title: '公告管理', show: true},
                component: () => import("@/page/system/notices/index"),
            },
            {
                path: "/type",
                name: "Type",
                meta: {title: '类型管理', show: true},
                component: () => import("@/page/system/types/index"),
            },
            {
                path: "/comment",
                name: "Comment",
                meta: {title: '评论管理', show: true},
                component: () => import("@/page/system/comments/index"),
            },
            {
                path: "/member",
                name: "Member",
                meta: {title: '会员申请', show: true},
                component: () => import("@/page/system/members/index"),
            },
            {
                path: "/order",
                name: "Order",
                meta: {title: '资助管理', show: true},
                component: () => import("@/page/system/orders/index"),
            },
            {
                path: "/category",
                name: "category",
                redirect: "/category/index",
                meta: {title: '会员申请', show: false},
                component: () => import("@/page/portal/category/index.vue"),
                children: [{
                    path: "index",
                    name: "categoryIndex",
                    component: () => import("@/page/portal/category/index"),
                },{
                    path: "category/details",
                    name: "categoryDetails",
                    component: () => import("@/page/portal/category/Details/index"),
                },]
            }
        ],
    },
];

export const routes2 = [
    {
        path: "/",
        name: 'Layout',
        redirect: '/home',
        component: () => import("../page/portal/MainLayout.vue"),
        children: [
            {
                path: "/home",
                name: "home",
                component: () => import("@/page/portal/home/index"),
            },
            {
                path: "/notice",
                name: "notice",
                redirect: "/notice/index",
                component: () => import("@/page/portal/notice/index.vue"),
                children: [
                    {
                        path: "index",
                        name: "noticeIndex",
                        component: () => import("@/page/portal/notice/index"),
                    },
                    {
                        path: "details",
                        name: "noticeDetails",
                        component: () => import("@/page/portal/notice/Details/index"),
                    }]
            },
            {
                path: "/information",
                name: "information",
                redirect: "/information/index",
                component: () => import("@/page/portal/information/index.vue"),
                children: [{
                    path: "index",
                    name: "informationIndex",
                    component: () => import("@/page/portal/information/index"),
                },
                {
                    path: "information/details",
                    name: "informationDetails",
                    component: () => import("@/page/portal/information/Details/index"),
                }]
            },
            {
                path: "/initiate",
                name: "initiate",
                component: () => import("@/page/portal/initiate/index"),
            }, {
                path: "/category",
                name: "category",
                redirect: "/category/index",
                component: () => import("@/page/portal/category/index.vue"),
                children: [{
                    path: "index",
                    name: "categoryIndex",
                    component: () => import("@/page/portal/category/index"),
                },{
                    path: "category/details",
                    name: "categoryDetails",
                    component: () => import("@/page/portal/category/Details/index"),
                },]
            },
            {
                path: "/mine",
                name: "mine",
                redirect: "/mine/index",
                component: () => import("@/page/portal/mine/index.vue"),
                children: [{
                    path: "index",
                    name: "mineIndex",
                    component: () => import("@/page/portal/mine/index"),

                },
                {
                    path: "mine/info",
                    name: "mineInfo",
                    component: () => import("@/page/portal/mine/Info/index"),
                },
                {
                    path: "mine/update",
                    name: "mineUpdate",
                    component: () => import("@/page/portal/mine/Update/index"),
                }]
            }
        ]
    },

];
export const routes = [
    {
        path: "/login",
        name: "login",
        component: () => import("../page/login/Login.vue")
    },
    {
        path: "/register",
        name: "register",
        component: () => import("../page/register/index.vue")
    },
    {
        path: "/404",
        component: () => import("@/page/404.vue")
    },

]
